﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Proggy.Web.Cms.PropertyTypes
{
    /// <summary>
    /// A property type which can, if required, auto render a partial
    /// </summary>
    public interface IAutoRenderPropertyType
    {
        /// <summary>
        /// Returns the model to be passed to the partial view
        /// </summary>
        /// <returns></returns>
        object GetAutoRenderModel();

        /// <summary>
        /// The full path to the partial
        /// </summary>
        string FullPathToAutoRenderPartial { get; }        
    }
}
